package com.atguigu.yygh.hosp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author mgx
 * @version 1.0
 * @description: 主启动类
 * @date 2022/8/20 22:31
 */
@SpringBootApplication
@ComponentScan(value = "com.atguigu.yygh")
@MapperScan(basePackages = {"com.atguigu.yygh.hosp.mapper"}) // 扫描mapper包
@EnableDiscoveryClient // 注册中心
@EnableFeignClients(basePackages = {"com.atguigu.yygh"}) // 需要扫描feign接口
public class ServiceHospMainStarter {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospMainStarter.class, args);
    }
}
